﻿@model WeProjectsModel.Project

@{
    ViewBag.Title = "Create";
    //if (!Roles.IsUserInRole("sysadmin"))
    //{
    //    Response.Write("当前用户没有权限操作");
    //    Response.End();
    //}    
}
<style type="text/css">
    section.container div.form-group {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        overflow:hidden;
        zoom:1;
    }
</style>
<script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.all.min.js"> </script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<script type="text/javascript" charset="utf-8" src="lang/zh-cn/zh-cn.js"></script>

   <h2> @ViewBag.projectTitle 新建项目</h2>
<p class="buttonIn">
    @Html.ActionLink("返回", "Index")
</p>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
        <div class="form-group">
            <label class="col-xs-2 col-md-2 control-label text-right">项目名称(必填)</label>
            <div class="col-xs-10 col-md-10">
                <input type="hidden" name="id" value="@Html.ViewContext.RouteData.Values["id"]" />
                <input type="text" name="title" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-2 col-md-2 control-label text-right">项目编号(Optional)</label>
            <div class="col-xs-10 col-md-10">
                <input type="hidden" name="owner" value="@Membership.GetUser().ProviderUserKey" />
                <input type="text" name="serNum" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-2 col-md-2 control-label text-right">项目描述(Optional)</label>
            <div class="col-xs-10 col-md-10">
                @Html.EditorFor(model=>model.Desciption)
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-2 col-md-2 control-label text-right">项目组组长(必填)</label>
            <div class="col-xs-10 col-md-10">
                <input type="text" name="memberName" value="" /> <span class="alt">@ViewBag.memberErr</span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-2 col-md-2 control-label"></label>
            <div class="col-xs-10 col-md-10">
                <input type="submit" value="提交" class="btn btn-success" />
            </div>
        </div>
    }        
        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }
